import { ajax } from '@/utils'

import { editCompany } from './companyTypes'

export default {
  //销售公司列表
  getCompanyList(data): Promise<any> {
    return ajax.post(`/yswy-zy-activity/salesCompanyManage/list`, data)
  },
  //销售公司详情
  companyDetail(id: any): Promise<editCompany> {
    return ajax.get(`yswy-zy-activity/salesCompanyManage/detail/${id}`)
  },
  //编辑销售公司
  editCompany(data): Promise<editCompany> {
    return ajax.post(`/yswy-zy-activity/salesCompanyManage/edit`, data)
  }
}
